using AndroidCaller;
using System.Collections;
using UnityEngine;
using UnityEngine.UI;

public class HouseIconLoader : MonoBehaviour
{
	//public GameObject icon_box;

	//public GameObject icon;

	//public new string name;

	//private void Start()
	//{
	//	icon_box.SetActive(value: false);
	//	icon.SetActive(value: false);
	//	WWW www = new WWW("http://labexception.com/house_icon/" + name + ".png");
	//	StartCoroutine(WaitForRequest(www));
	//}

	//private IEnumerator WaitForRequest(WWW www)
	//{
	//	yield return www;
	//	if (www.error == null)
	//	{
	//		Sprite sprite = Sprite.Create(www.texture, new Rect(0f, 0f, www.texture.width, www.texture.height), new Vector2(0.5f, 0f), 1f);
	//		icon.GetComponent<Image>().sprite = sprite;
	//		icon.SetActive(value: true);
	//		icon_box.SetActive(value: true);
	//	}
	//	else
	//	{
	//		UnityEngine.Debug.Log("WWW Error: " + www.error);
	//	}
	//}

	//public void Click()
	//{
	//	//NativeCall.Call("iconclick");
	//}
}
